package encome.work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import encome.work.dao.VolunteerInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface VolunteerInfoMapper extends BaseMapper<VolunteerInfo> {

    @Delete("delete from volunteer_info where order_id = #{order_id}")
    void deleteByOrderId(@Param("order_id") Long orderId);
}
